package com.ctgu.fcftsystem.dao;

import com.ctgu.fcftsystem.pojo.Expenditure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface ExpenditureDao {


    /**
     * 根据时间对支出记录进行查询
     * @param date
     * @return
     */
    List<Expenditure> searchExpenditureByDate(@Param("d") Date date);


    /**
     * 根据类型对支出记录进行查询
     * @param expenditureType
     * @return
     */
    List<Expenditure> searchExpenditureByType(@Param("expenditureType") Integer expenditureType);
}
